﻿using Xejen.Ipc.Framework.Flows;
using System;
using System.Collections.Generic;
using System.Text;

namespace Xejen.Ipc.Framework.Controllers
{
    /// <summary>
    /// 表示控制器事件参数
    /// </summary>
    /// <typeparam name="TData"><inheritdoc cref="IFlow{TData}" path="/typeparam[@name='TData']"/></typeparam>
    /// <creator>marc</creator>
    public class ControllerEventArgs<TData> : EventArgs
        where TData : new()
    {
        /// <inheritdoc cref="IControllerInstance"/>
        public IControllerInstance Controller { get; set; }

        /// <summary>
        /// <inheritdoc cref="ControllerEventArgs{TData}"/>
        /// </summary>
        /// <param name="controller"><inheritdoc cref="IControllerInstance" path="/summary"/></param>
        public ControllerEventArgs(IControllerInstance controller)
        {
            Check.NotNull(controller, nameof(controller));

            Controller = controller;
        }
    }
}
